home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Screen Candy
/
Screen Candy Volume 1.iso
/
pc
/
install.dat
< prev
next >
Wrap
Text File
|
1994-04-21
|
9KB
|
283 lines
/*
INSTALL.DAT
Project: Screen Candy
Version: 1.0
*/
/* The @DefineProject block starts the installation script by telling
Install what version, product, and other basic information that
Install will need to process the installation. The text that
@Name is set to is the same information that can be found on the
first line of the DISK.ID file. Likewise the text that @Version
is set to, is the same information that can be found on the second
line of the DISK.ID file. This information remains constant
throughout the entire distribution set. @Subdir and @OutDrive are
used to define the default drive and directory for the target system
during the installation process.
*/
@DefineProject
@Name = "Screen Candy"
@Version = "1.0"
@Subdir = "\\QTW"
@OutDrive = C
@EndProject
/* The following @DefineVars block is used to assign variables to
specific types (Integer, QString, Drive, & Dir) as well as establishing
default values for the variables. Later in this script file these
variables are assigned values depending whether particular files will be
installed or not.
*/
@DefineVars
@Integer @amid = 600
@Integer @qtw = 1500
@Integer @TSIZE = @Eval(@amid+@qtw)
@Integer @Red = @RGB(255,0,0) //DEFINE COLOR RED
@Integer @Green = @RGB(0,255,0) //DEFINE COLOR GREEN
@Integer @Blue = @RGB(0,0,255) //DEFINE COLOR BLUE
@Integer @Black = @RGB(0,0,0) //DEFINE COLOR BLACK
@Qstring @FileName = "@StartupDrive:@StartupDir\\sc100\\scandy1.mov"
@Qstring @Directory = "@StartupDrive:@StartupDir\\sc100"
@EndVars
@BackgroundMode(3,@Blue,@Black)
/*
The following section displays the welcoming message during installation.
*/
@Display
This program installs the Screen Candy Screen Saver utility
on your hard drive. To continue, choose "OK". To quit choose
"Cancel".
@Pause
@Enddisplay
@SetOption(1001)
@SetOption(1002)
LOOP:
@BackgroundMode(3,@Blue,@Black) //set background to blue/black
@DlgCtrlSize(0,7,5,14,50) // set coordinates & size of list box
@GetOption @Checkbox @Prompt = "Select files to install"
@Name by default will install the program files to the Windows directory,
and Quicktime for Windows to a selected target directory.
The total installation takes approximately 2.1 Mb of disk space.
@Option 1001 = "Screen Candy"
@Option 1002 = "Quicktime for Windows "
@EndOption
@if(1002 [= @option)
NEWDRIVE: // Goto label for reselecting drive
/*
INSTALL will now prompt the end-user for the
drive they wish Screen Candy to be installed onto.
*/
@BackgroundMode(3,@Blue,@Black)
@DlgCtrlSize(0,8,15,15,27)
@GetOutDrive @OutDrive @Prompt = "Enter target drive"
@Suppress(0,17) // Suppress floppies & CD-ROM drives
Please select the drive where you wish QuickTime
for Windows to be installed on your machine. Any
available drive can be used assuming you have
access rights to the drive you select, and
there is enough space available for installation.
@EndOutDrive
/*
INSTALL will now prompt the end-user for the
directory they wish Quicktime to be installed
into.
*/
NEWDIR:
@BackgroundMode(3,@Blue,@Black)
@DlgCtrlSize(0,7,0,8,35)
@GetSubdir @Subdir @Prompt = "Enter target directory"
Please select the directory
you wish Quicktime to be installed under.
@EndSubdir
@EndIf
@if(1001 [! @option) @amid=0 @Else @amid = 600 @EndIf //if group not selected zero out
@if(1002 [! @option) @qtw=0 @Else @qtw = 1500 @EndIf //if group not selected zero out
@TSIZE = @Eval((@amid+@qtw)) // add selected options' size requirements
// if total size > free space, then display
// blue background and set default to loop back and select again.
@If(@TSIZE*1024 > @DiskFree(@OutDrive))
@BackgroundMode(3,@Blue,@Black)
@Display
The drive you have selected does not have
enough free space available.
@Pause
@EndDisplay
@GOTO NEWDRIVE
@EndIf
@BackgroundMode(3,@Blue,@Black)
@SetOption(1600) @ClearOption(1700)
@DlgCtrlSize(0,13,12,17,40)
@GetOption @Prompt = "Selected files summary"
You have selected to install the following options.
@if(1001 [= @option) Screen Candy @amid K @Else Screen Candy WILL NOT BE INSTALLED @EndIf
@if(1002 [= @option) Quicktime for Windows @qtw K @Else Quicktime for Windows WILL NOT BE INSTALLED @EndIf
The selected files will require a total of: @TSIZE K bytes.
The drive currently selected for installation has: @Eval(@DiskFree(@OutDrive)/1K) K free.
You may:
@Option 1600 = "CONTINUE"
@Option 1700 = "RESELECT OPTIONS"
@EndOption
@If(1700 [= @Option) @GOTO Loop @EndIf
@If(1001 [= @Option)
@SetINI("Screen Saver.Screen Candy", "MovieFileName", "@FileName" ,"control.ini")
@SetINI("Screen Saver.Screen Candy", "Directory", "@Directory" ,"control.ini")
@SetINI("Screen Saver.Screen Candy", "Option", "1" ,"control.ini")
@EndIf
/*
The @DefineDisk blocks actually do the copying of the files, from the
floppy disk to the hard disk of the end-users particular choice.
*/
@DefineDisk
@Label = "Screen Candy"
/*
The following files are not in a library and are always installed.
*/
/* @File README.txt @OUT *.* */
@If(1001 [= @Option) // if install source selected, install
@File qtw\Scandy.scr @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@File qtw\VBRUN300.DLL @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@File qtw\THREED.VBX @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@File qtw\MANUAL.TXT @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@EndIf // Option 1001
@If(1002 [= @Option) // if install source selected, install
@File qtw\qtmovie.vbx @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@File qtw\qtpic.vbx @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@File qtw\mciqtenu.dll @out BIN\*.* @OVERWRITE
@File qtw\playenu.dll @OUT BIN\*.* @OVERWRITE
@File qtw\qthndlr.dll @OUT BIN\*.* @OVERWRITE
@File qtw\qtim.dll @OUT BIN\*.* @OVERWRITE
@File qtw\qtimcmgr.dll @OUT BIN\*.* @OVERWRITE
@File qtw\qtole.dll @OUT BIN\*.* @OVERWRITE
@File qtw\qtvhdw.dll @OUT BIN\*.* @OVERWRITE
@File qtw\viewenu.dll @OUT BIN\*.* @OVERWRITE
@File qtw\mciqtw.drv @OUT BIN\*.* @OVERWRITE
@File qtw\player.exe @OUT BIN\*.* @OVERWRITE
@File qtw\qtnotify.exe @OUT BIN\*.* @OVERWRITE
@File qtw\viewer.exe @OUT BIN\*.* @OVERWRITE
@File qtw\navg.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qcmc.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtcvid.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtjpeg.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtmsvc.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtraw.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtrle.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtrpza.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtrt21.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtsmc.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtyvu9.qtc @OUT BIN\*.* @OVERWRITE
@EndIf // Option 1002
@EndDisk
/*
* The following lines will be placed into any pre-existing AUTOEXEC.BAT
* file on the boot disk in the boot drive. If no AUTOEXEC.BAT file
* already exists, then one will be created.
*
* Each of the two AUTOEXEC.BAT related commands, @Path and @Verbatim,
* is aware of the structure of an AUTOEXEC.BAT file.
*
* The @Path command examines each node of any existing PATH= commands
* (or its synonym SET PATH=) and places each of the nodes specified
* in the @Path command of the INSTALL.DAT file only if the node
* does not already exist on the PATH= search list of the AUTOEXEC.BAT
* file.
*
* The @Verbatim command instructs INSTALL to place the quoted string
* into the AUTOEXEC.BAT file, if the string is not already there.
*/
@if(1002 [! @option) @qtw=0 @Else @qtw = 1500
@SetAutoexec
@ASKOverwrite
@Path = "@OutDrive:@Subdir\\BIN"
@EndAutoexec
@EndIf //if group not selected zero out
@Finish
@If(@BackgroundMode(3,@Blue,@Black))@EndIf
@Cls
/*
The following command is used to create the INSTALL group and
add the INSTALL item to the Windows Program Manager.
*/
@ProgramManager("[CreateGroup(From Baku)][AddItem(@WindowsDrive:\\@WindowsDir\\Manual.txt, Manual)][AddItem(@StartupDrive:\\@StartupDir\\QTW\\player.exe, QT Player)][ShowGroup(From Baku, 2)]")
@Cls
@Name is finished installing. Thank you for your purchase.
@Pause
@If(@BackgroundMode(3,@Blue,@Black))@EndIf
@ChDrive (@OutDrive)
@ChDir ("@SubDir")
@EndFinish
// end-of-file